package com.topisv.tms.repository.task;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.topisv.tms.entity.task.TaskLocker;

public interface TaskLockerDao extends PagingAndSortingRepository<TaskLocker, Long>, JpaSpecificationExecutor<TaskLocker> {

	@Query("select t from TaskLocker t where t.dealIp = ?1 ")
	TaskLocker findLocked(String ip);

}
